package com.example.hszpad;

import android.app.Application;

import com.example.hszpad.bean.ConfigBean;
import com.example.hszpad.util.FileUtil;
import com.example.hszpad.util.XmlParserUtil;

import java.io.File;

public class MyApplication extends Application {
    public static ConfigBean configBean;

    @Override
    public void onCreate() {
        super.onCreate();
        new Thread(new Runnable() {
            @Override
            public void run() {
                String filePath = FileUtil.getConfigPath() + File.separator + "config.xml";
                configBean = XmlParserUtil.parse(filePath);
            }
        }).start();
    }
}
